<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>data</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="case13-demo3">
    <btn-component></btn-component>
    <btn-component></btn-component>
</div>
<script type="text/javascript">
    var case13Demo=new Vue({
        el:"#case13-demo3",
        components:{
            'btn-component':{
                template:'<button v-on:click="count++">{{count}}</button>',
                data:function () {
                    return{
                        count:0
                    }
                }
            }
        }
    })
</script>
</body>
</html>